

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:luckin_demo/drawerdemo/button/my_button.dart';
import 'package:luckin_demo/drawerdemo/page/food_detials.dart';
import 'package:luckin_demo/drawerdemo/page/intro_page.dart';
import 'package:luckin_demo/drawerdemo/page/menupage.dart';

void main() {
  // debugProfileBuildsEnabled = true;
  // debugProfilePaintsEnabled = true;
  // debugPaintLayerBordersEnabled = true;
  runApp(GetMaterialApp(home: App(),
    // initialRoute: '/login',
    routingCallback: (routing) =>{print(routing?.current)},
    routes: {
      '/login':(context) => const LoginPage(),
    '/introPage':(context) => const IntroPage(),
    '/menuPage':(context) => const MenuPage(),
    // '/fooddetialsPage':(context) => const FoodDetialsPage(),
  },));
}


class LoginPage extends StatelessWidget {
  const LoginPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
           child: Text('登录'),
      ),
    );
  }
}


class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
       backgroundColor: Color.fromRGBO(255, 138, 60, 88),
      body: Padding(
        padding: EdgeInsets.all(25),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: [
            SizedBox(height: 23,),
            //shop name
            Text('SUSHI MAN',style: TextStyle(
              color: Colors.white,
              fontSize: 28.0,
              fontFamily: "Calibre-Semibold",
              letterSpacing: 1.0,
            ),),
            SizedBox(height: 25,),
            Image.asset('lib/assets/sushi/salmon.png'),
            SizedBox(height: 23,),
            //shop name
            Text('THE TASTE OF JAPANESE FOOD',style: TextStyle(
              color: Colors.white,
              fontSize: 38.0,
              fontFamily: "Calibre-Semibold",
              letterSpacing: 1.0,
            ),),
            Container(
              // width: 100,
              child: MyButton(text: 'Get Started',onTop: ()=>Get.toNamed('/menuPage'),))
          ],
        ),
      )

    );
  }
}